<?php
//Author: Lu Chan Thanh
//28-10-2012

function showMessage($message)
{
	echo "<script language=javascript> alert('".$message."'); </script>";	
}

function goToPage($path)
{
	echo "<script language=javascript> window.location = '".$path."'; </script>";	
}
	
function validate(){
	if(!isset($_COOKIE["username"]))
	{
		header("Location: login.php");
	}
}


?>